home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12695 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.ucdavis.edu!hercules
  2. From: djsecrist@ucdavis.edu (Daniel J. Secrist)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: === GET_CHAR and others ===
  5. Date: Tue, 02 Apr 96 04:59:41 GMT
  6. Organization: University of California, Davis
  7. Distribution: world
  8. Message-ID: <4jqcba$fn0@mark.ucdavis.edu>
  9. References: <315FD0E1.41C6@cell.co.uk> <Pine.A32.3.91.960401134012.57486C-100000@black.weeg.uiowa.edu>
  10. NNTP-Posting-Host: reqf-072.ucdavis.edu
  11. X-Newsreader: News Xpress 2.0 Beta #0
  12. Keyword: What about on a PC?
  13.  
  14. In article <Pine.A32.3.91.960401134012.57486C-100000@black.weeg.uiowa.edu>, The Amorphous Mass <robinson@blue.weeg.uiowa.edu> wrote:
  15. >On Mon, 1 Apr 1996, Kai Chan wrote:
  16. >
  17. >> Hi,
  18. >>       I'm trying to read a character at a time from the keyboard without
  19. >> having to press return everytime. Someone said getch() but it doesn't
  20. >> seem to work, can anyone give me an example or something? 
  21. >> I'm working on a IRIX platform.
  22. >
  23. >  You have to use a call to the IRIX API to do this.  I believe the call 
  24. >you want is ioctl(), but my advice is worth at most what you paid for it. :-)
  25. >Any solution you do come up with will be nonportable.  Look in the 
  26. >comp.unix.programmer FAQ.  If it's a FAQ here, I'm sure it's a FAQ there.
  27. >
  28. >/**James Robinson***********************            
  29. >  "An important goal of almost every graphics program is to draw pictures on
  30. > the screen."    -- Neider, Davis & Woo, _OpenGL_Programming_Guide_, Chapter 10
  31. >                                       *************james-robinson@uiowa.edu**/
  32. >
  33. >
  34. >
  35.  
  36. How would you do this on a PC using Borland C++ v4.52?  I don't care about 
  37. portability.  Thanks...
  38.